package wsz.kafka.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import wsz.kafka.service.JobServiceImpl;

/**
 * @author wsz
 * @date 2022/3/17 14:08
 **/
@Controller
@RequestMapping("")
public class JobController {

    @Autowired
    private JobServiceImpl jobService;

    @GetMapping("")
    public String findAll(Model model) {
        model.addAttribute("jobList", jobService.findAll());
        return "index";
    }
}
